#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <unistd.h>

#include "hi_alarm.h"

int main(int argc, char *argv[] )
{
    int fd = -1,ret;

    fd = open("/dev/"HIALARM_DEVICE_NAME, O_RDWR);
    if ( fd < 0 )
    {
        perror("open");
        return -1;
    }
#if 0    
    ret = ioctl(fd, GPIO_IOC_DATA, 1);
    if (ret != 0)
    {
        perror("ioctl");
        return -1; 
    }
    sleep(1);
    ret = ioctl(fd, GPIO_IOC_DATA, 0);
    if (ret != 0)
    {
        perror("ioctl");
        return -1; 
    }
#endif
    while (1);
    close(fd);
    return 0;
}
